<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="Windows-1252">
<title>font-family Attribute</title>
<style>@import url(coUA.css);</style>
</HEAD>

<BODY>
<h3><a name="cssattr_0001000301002300"></a>font-family Attribute </h3>
<p>
{ <b>font-family:</b> [[ &lt;<b>family-name&gt;</b> | &lt;<b>generic-family&gt;</b> ] <b>,</b> ]<b>*</b> [ &lt;<b>family-name&gt;</b> | &lt;<b>generic-family&gt;</b> ]}<BR></p>
<p>
Sets the font-family. </p>
<p>
This attribute is inherited. </p>
<p>
<b>Settings</b></p>
<p>
The value is a prioritized list of font family names and/or generic family names. List items are separated by white space. If the font family name contains white space, it should be quoted with single or double quotes. </p>
<p>
In level 1, the following generic families are defined: </p>
<p>
     'serif' (e.g. Times) </p>
<p>
     'sans-serif' (e.g. Helvetica) </p>
<p>
     'cursive' (e.g. Zapf-Chancery) </p>
<p>
     'fantasy' (e.g. Western) </p>
<p>
     'monospace' (e.g. Courier) </p>
<p>
Style sheet writers are encouraged to offer a generic font family at the end of the list: </p>
<p>
  BODY { font-family: univers helvetica sans-serif }</p>
<p>
  BODY { font-family: 'new century schoolbook' serif }</p>
<p>
  BODY { font-family: &quot;Bill's own font&quot; fantasy }</p>
<p>
Ideally, the style sheet designer should specify only one font, and the font manager should return the best alternative (perhaps by taking visual similarity, visual quality and performance into account). Unfortunately, current rendering environments do not offer this level of service, and it is beyond the style sheet mechanism to do so. Therefore, a prioritized list of alternative families can be supplied. This practice poses one problem: the UA must be able to determine if a font selection has been successful or not to know how far it should proceed in the list. One example: if the style sheet asks for 'univers' and the window system is smart enough to suggest 'helvetica' (which looks almost identical) as a replacement, is this a success or failure? This specification leaves the answer undefined for now. </p>
</BODY>
</HTML>
